package com.yuedou.api.util;

import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonResultBean<T> {

	protected int code;
	protected String msg;
	protected int totalcount;
	protected T data;

	public GsonResultBean() { }

	public GsonResultBean(int code,String msg, int totalcount, T data) {
		this.code = code;
		this.msg = msg;
		this.totalcount = totalcount;
		this.data = data;
	}

	public GsonResultBean( int code,String msg) {
		this.code = code;
		this.msg = msg;
	}

	public GsonResultBean( int code,String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getTotalcount() {
		return totalcount;
	}

	public void setTotalcount(int totalcount) {
		this.totalcount = totalcount;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
